package cn.dmrliu.edu.publish.service.impl;


import cn.dmrliu.edu.publish.bean.*;
import cn.dmrliu.edu.publish.mapper.TrafficChannelStatsMapper;
import cn.dmrliu.edu.publish.service.TrafficChannelStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TrafficChannelStatsServiceImpl implements TrafficChannelStatsService {
    @Autowired
    TrafficChannelStatsMapper trafficChannelStatsMapper;
    @Override
    public List<TrafficUvCtByCh> getUvCt(Integer date) {
        return trafficChannelStatsMapper.selectUvCt(date);
    }

    @Override
    public List<TrafficSvCtByCh> getSvCt(Integer date) {
        return trafficChannelStatsMapper.selectSvCt(date);
    }

    @Override
    public List<TrafficPvPerSessionByCh> getPvPerSession(Integer date) {
        return trafficChannelStatsMapper.selectPvPerSession(date);
    }

    @Override
    public List<TrafficDurPerSessionByCh> getDurPerSession(Integer date) {
        return trafficChannelStatsMapper.selectDurPerSession(date);
    }

    @Override
    public List<TrafficUjRateByCh> getUjRate(Integer date) {
        return trafficChannelStatsMapper.selectUjRate(date);
    }
}
